target = geotr

CFILES = traceroute.c ifaddrlist.c findsaddr-socket.c version.c as.c libmanip/manip.c
CFLAGS = -mdynamic-no-pic -dead_strip -DHAVE_SOCKADDR_SA_LEN
LDFLAGS = -liconv

all: $(target)

$(target): $(CFILES)
	$(CC) -O2 $(CFLAGS) $(LDFLAGS) -o $@ $^
